package com.de.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Description
 * @Date 2020/3/16
 * @Author
 * @Version
 **/
@Controller
public class testAuto {


    @Autowired
    private RedisTemplate redisTemplate;

    @RequestMapping("/testAuto")
    public void testAuto(){
        System.out.println("自动注入：" + redisTemplate);
    }
}
